package com.hyfrogx.modules.manage.dao.task;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyfrogx.modules.manage.entity.task.TaskRewardEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
/**
 * @author 罗春杰-技术部
 */
@Mapper
public interface TaskRewardDao extends BaseMapper<TaskRewardEntity> {
    /**
     * @param code
     * @return
     */
    List<TaskRewardEntity> findHyTaskRewardByCode(@Param("code") Integer code);

    /**
     * (充值活动）获取任务奖励
     * @param money
     * @return
     */
    TaskRewardEntity getSendScoreByMoney(@Param("money") BigDecimal money);
}
